﻿using System;

namespace Dyao.Book.Contract
{
    /// <summary>
    /// 枚举名简写
    /// </summary>
    [AttributeUsage(AttributeTargets.Field)]
    public class ShortNameAttribute : Attribute
    {
        /// <summary>
        /// 枚举名简写
        /// </summary>
        /// <param name="name"></param>
        public ShortNameAttribute(string name)
        {
            Name = name;
        }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
    }
}
